package com.uzai.console.enums;

/**
 * 抖音设备产品模块KEY
 */
public enum TiktokDeviceProductEnum {

    /**
     * 社群群发
     */
    FD("fd","社群群发", "['fd']"),

    ;

    private String value;
    private String desc;
    private String codes;

    TiktokDeviceProductEnum(String value, String desc, String codes) {
        this.value = value;
        this.desc = desc;
        this.codes = codes;
    }
    public String getValue() {
        return value;
    }
    public String getDesc() {
        return desc;
    }
    public String getCodes() {return codes;}
    public static TiktokDeviceProductEnum getValue(String value) {
        if (value == null) {
            return null;
        }
        for (TiktokDeviceProductEnum type: TiktokDeviceProductEnum.values()) {
            if (type.getValue().equals(value) ) {
                return type;
            }
        }
        return null;
    }
    public static String getDesc(String value) {
        if(getValue(value) == null){
            return null;
        }
        return getValue(value).getDesc();
    }
    public static String getCodes(String value) {
        if(getValue(value) == null){
            return null;
        }
        return getValue(value).getCodes();
    }
}
